libkovan
1
The kovan standard library
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
compat.hpp
Go to the documentation of this file.
1
#ifndef _KOVAN_COMPAT_HPP_
2
#define _KOVAN_COMPAT_HPP_
3
4
#ifdef _MSC_VER
5
#define NOMINMAX
6
#define WIN32_LEAN_AND_MEAN
7
#include <windows.h>
8
#endif
9
10
namespace
compat
11
{
12
int
yield
();
13
int
microsleep
(
unsigned
long
microseconds);
14
}
15
16
#ifdef _MSC_VER
17
18
#define PRETTYFUNC __FUNCSIG__
19
#pragma section(".CRT$XCU", read)
20
#define INITIALIZER(f) \
21
static void __cdecl f(void); \
22
__declspec(allocate(".CRT$XCU")) void (__cdecl*f##_)(void) = f; \
23
static void __cdecl f(void)
24
typedef
SSIZE_T ssize_t;
25
26
#else
27
28
#define PRETTYFUNC __PRETTY_FUNCTION__
29
#define INITIALIZER(f) \
30
static void f(void) __attribute__((constructor)); \
31
static void f(void)
32
33
#endif
34
35
#endif
include
kovan
compat.hpp
Generated on Mon Aug 19 2013 00:33:00 for libkovan by
1.8.4